﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ITaskResult.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the ITaskResult type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.Threading
{
    using System;

    public interface ITaskResult
   {
      Exception Error
      { 
         get;
      }

      bool IsCanceled
      { 
         get;
      }

      object AsyncState
      { 
         get;
      }
   }

   public interface ITaskResult<T> : ITaskResult
   {
      T Result
      {
         get;
      }
   }
}
